<%@ page contentType="text/html; charset=utf-8"  pageEncoding="utf-8" %>
<%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<s:layout-definition>
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
	<!--
	Design by Free CSS Templates
	http://www.freecsstemplates.org
	Released for free under a Creative Commons Attribution 2.5 License
	
	Name       : Ministerial 
	Description: A two-column, fixed-width design with dark color scheme.
	Version    : 1.0
	Released   : 20121029
	Link: http://www.freecsstemplates.org/preview/ministerial/
	
	-->
	<html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<meta name="keywords" content="" />
			<meta name="description" content="" />
			<meta http-equiv="content-type" content="text/html; charset=utf-8" />
			<title>${headline}</title>
			<link href='http://fonts.googleapis.com/css?family=Oswald:400,300' rel='stylesheet' type='text/css' />
			<link href='http://fonts.googleapis.com/css?family=Abel|Satisfy' rel='stylesheet' type='text/css' />
			<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" />
			<script src="http://code.jquery.com/jquery-1.8.3.js"></script>
			<script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
			<style  type="text/css" >
				body {
					margin: 50px 0px 0px 0px;
					padding: 0;
					background: #E6E6E6 url(${pageContext.request.contextPath}/images/main-bg.png) repeat;
					font-family: Arial, Helvetica, sans-serif;
					font-size: 12px;
					color: #8F8F8F;
				}

			</style>
			<link href="${pageContext.request.contextPath}/default.css" rel="stylesheet" type="text/css" media="all" />
			<script>
				$(function() {
					$( ".deleteentity" ).click( function() {
						var url = $(this).attr( "href" );
						<f:message key="confirmdelete.msg" var="confirmdeletemsg"/>
						<f:message key="confirmdelete.delete" var="confirmdeletedelete"/>
						<f:message key="confirmdelete.storno" var="confirmdeletestorno"/>
						$( "#dialog-confirm" ).html( "${confirmdeletemsg}" + $(this).attr( "title" ) );
						$( "#dialog-confirm" ).dialog({
							resizable: true,
							modal: true,
							closeOnEscape: true,
							close: function () { $( this ).dialog( "destroy" ) },
							buttons: {
								"${confirmdeletedelete}": function() {
									$( this ).dialog( "destroy" );
									window.location= url;
								},
								"${confirmdeletestorno}": function() {
									$( this ).dialog( "destroy" );
								}
							},
							width: 380,
							minHeight: 230,
							height: 'auto',
							modal: true,
							open: function (event, ui) {
								$("#dialog-confirm").css('overflow', 'hidden');
							}
						});
						return false;
					})
				});
			</script>
			<!--[if IE 6]>
			<link href="default_ie6.css" rel="stylesheet" type="text/css" />
			<![endif]-->
		</head>
		<body>
			<div id="wrapper">
				<div id="header-wrapper">
					<div id="header">
						<div id="logo">
							<h1><a href="${pageContext.request.contextPath}/index.jsp"><f:message key="title" /></a></h1>
						</div>
						<div id="menu">
							<ul>
								<li><a href="${pageContext.request.contextPath}/index.jsp" accesskey="1" title=""><f:message key="home" /></a></li>
								<li><a href="${pageContext.request.contextPath}/mushroom.jsp" accesskey="2" title=""><f:message key="mushrooms" /></a></li>
								<li><a href="${pageContext.request.contextPath}/picker.jsp" accesskey="4" title=""><f:message key="pickers" /></a></li>
                                                    </ul>
						</div>
					</div>
				</div>

				<div id="page-wrapper">
					<div id="page">
						<div id="wide-content">
							<div>
								<h2><c:out value="${headline}" /></h2>
								<s:layout-component name="content" />
							</div>
						</div>
					</div>
				</div>
			</div>
			<div id="footer">
				<p>Copyright (c) 2012 Sitename.com. All rights reserved. Design by <a href="http://www.freecsstemplates.org">FCT</a>.</p>
			</div>
			<f:message key="confirmdelete.title" var="confirmdeletetitle"/>
			<div id="dialog-confirm" title="${confirmdeletetitle}"></div>
		</body>
	</html>
</s:layout-definition>